hi i have a query - not sure if it can be done easily but i will ask anyway :) i have a top level reqt with several lower level reqts traced to it. each of the child reqts has its own compliance e.g. compliant, non compliant, pending etc what i would like to do is display a percentage of each compliance type at the top level reqt. e.g. 1 reqt has 5 incoming links and 3 of these are compliant and 2 are non compliant. somehow i would like to display 60% compliant and 40% non compliant against the top level 1 reqt. thanks in advance for your help,
doorsuser77 - Mon Apr 24 12:37:32 EDT 2017 |
Re: counting linked values You need to create a DXL Layout Column / DXL Attribute to iterate the links of the objects and find out how many are compliant. Search the forum for "iterate properly link" ... There you will find the code on how to get a handle to the link source objects. From there you simply need to read the attribute values for the compliance and calculate your percentages. Come back here, if you need more help. Regards, Mathias |
Re: counting linked values hi thanks for your answer and very prompt! unfortunately im not that good of a DOORS dxl-er!! any advice would be much appreciated. if its v complex then i will try and find another way to do it. thanks
|
Re: counting linked values doorsuser77 - Mon Apr 24 12:55:03 EDT 2017 hi thanks for your answer and very prompt! unfortunately im not that good of a DOORS dxl-er!! any advice would be much appreciated. if its v complex then i will try and find another way to do it. thanks
If you expect someone to chime in and put that code for you together you will maybe not be lucky. You need to look on the forum for a working example (as I said, there are plenty) and come up with a more specific question. In the end you need to decide for yourself if that is too complex for you. Regards, Mathias |